import java.util.logging.Logger;

import logs.MyLogger;

import gui.MainFrame;
import domein.*;

public class StartUP 
{
	public static Logger logger = Logger.getLogger("MyLog");
	
	public static void main(String[] args)
	{
		//logger
		MyLogger myLogger = new MyLogger();
		myLogger.startLogger();
		logger.info("StartUp log");
		
		//select shared filemap en download directory
		setSharedDir();
		setDownloadDir();
		
		//create instance of Peer and run PeerServer and FileServer
		PeerController.getInstance().startServers();
		
		//opstarten mainframe
		MainFrame mf = new MainFrame();
		mf.setVisible(true);
		mf.setSize(816, 618);
	}
	
	public static void setSharedDir()
	{
		Settings.setSharedDir("/users/rensbonnez/documents/Shared");
	}
	
	public static void setDownloadDir()
	{
		Settings.setDownloadDir("users/rensbonnez/downloads");
	}
}